package com.fourth.fronted.service.impl;

import com.fourth.entity.Goods;
import com.fourth.fronted.dao.GoodsMapper;
import com.fourth.fronted.service.GoodsService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;


/**
 * @author 林奇伟
 */
@Service
public class GoodsServiceImpl implements GoodsService {

    @Resource
    private GoodsMapper goodsMapper;


    @Override
    public List<Goods> selectAllGoods() {
        return goodsMapper.selectAllGoods();
    }

    @Override
    public Goods selectGoodsById(Integer goodsId) {
        return goodsMapper.selectGoodsById(goodsId);
    }


}
